package xyz.luhui1hao.o2o.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;
import xyz.luhui1hao.o2o.domain.Area;

import java.util.List;

@Component
public interface AreaMapper {
    /**
     * 列出地域列表
     *
     * @param areaCondition
     * @return
     */
    List<Area> queryArea();

    /**
     *
     * @param area
     * @return
     */
    int insertArea(Area area);

    /**
     *
     * @param area
     * @return
     */
    int updateArea(Area area);

    /**
     *
     * @param areaId
     * @return
     */
    int deleteArea(long areaId);

    /**
     *
     * @param areaIdList
     * @return
     */
    int batchDeleteArea(List<Long> areaIdList);
}
